package com.miao.websecurity.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miao.websecurity.dao.RoleAdminDao;
import com.miao.websecurity.entity.RoleAdmin;
import com.miao.websecurity.entity.SysRole;
import com.miao.websecurity.service.RoleAdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 管理员与角色中间表(RoleAdmin)表服务实现类
 *
 * @author MiaoWenqing
 * @since 2021-01-16 15:41:07
 */
@Service("roleAdminService")
public class RoleAdminServiceImpl extends ServiceImpl<RoleAdminDao, RoleAdmin> implements RoleAdminService {

    @Resource
    private RoleAdminDao roleAdminDao;


    @Override
    public List<SysRole> getAdminRoleById(Integer adminId) {
        return this.roleAdminDao.getAdminRoleById(adminId);
    }
}